package com.xzl.org.learning_situation_analysis.dao;

import com.xzl.org.learning_situation_analysis.entity.Question;
import com.xzl.org.learning_situation_analysis.entity.QuestionScore;
import org.apache.ibatis.annotations.Mapper;

import java.util.HashMap;
import java.util.List;

/**
 * @author 夏智力
 * @FileName QuestionScoreMapper
 * @date 2022/4/14 14:27
 * @Software: IntelliJ IDEA
 */
@Mapper
public interface QuestionScoreMapper {

    List<QuestionScore> selectByPaperIdAndStudentId(int paperId, int studentId);

    HashMap<Integer,Float> selectPaperTotalScoreByPaperId(int paperId);

    int insertQuestionScore(QuestionScore questionScore);

    int updateScore(int id, float score);
}
